package com.example.pingze.repository;

import com.example.pingze.dto.PoemAndPoetInfoDto;
import com.example.pingze.entity.PoetInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface PoetInfoRepository extends JpaRepository<PoetInfo, String> , JpaSpecificationExecutor<PoetInfo> {

    PoetInfo findPoetInfoByPoetName(String name);

    List<PoetInfo> findPoetInfoByPoetNameContains(String name);

    PoetInfo findPoetInfoById(String id);
}
